Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] ENH: add option to delete a drive #550

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jasmainak
Copy link
Collaborator

No description provided.

def clear_connectivity(self):
"""Remove all connections defined in Network.connectivity
"""
def _clear_connectivity(self, src_types=None):
Copy link
Contributor

@ntolley ntolley Aug 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually I wonder if we should just combine this with the pick_connection API? Then you could flexibly specify which ones to delete

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly, but for now I made it private so I don't need to answer that question ;-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have two options: expose all the arguments that are in pick_connection. But this needs to be done in a consistent way. The other is to allow passing keyword arguments but then the documentation is not so nice because user will have to go to pick_connection function to check the documentation of clear_connectivity. But for now it's private ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants